﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using PathTracing;

public class SphereProxy : ShapeProxyBase
{

    public Sphere GetSphere()
    {
        Sphere sphere;
        sphere.Radius = transform.lossyScale.x * 0.5f;
        sphere.Origin = transform.position;
        sphere.EmmisionColor = new Vector3(emmisionColor.r,emmisionColor.g,emmisionColor.b) * emmisionIntensity;
        sphere.BaseColor = new Vector3(baseColor.r, baseColor.g, baseColor.b);
        sphere.ReflectFactor = Mathf.Clamp01(reflectFactor);
        sphere.Roughess = 1;
        return sphere;
    }
}
